//
//  LogKeeper.h
//  Pocket Doctor alpha version
//
//  Created by Sherif Nosseir on 11-12-06.
//  Copyright (c) 2011 __MyCompanyName__. All rights reserved.
//

#import "AppDelegate.h"
#import <UIKit/UIKit.h>

@interface LogKeeper : UIViewController <UIActionSheetDelegate, UISearchBarDelegate>{
    
    AppDelegate * aD;
    sqlite3 * dinDB;
    
    UIBarButtonItem *back;
    UIBarButtonItem *share;
    UISearchBar *searchDate;
    UITableView *logTracker;
    UISegmentedControl *order;
    
    UIBarButtonItem *backtoLog;
    UINavigationBar *navDescription;
    UITextView *description;
    UIImageView *descriptionImage;
    
    NSMutableArray *medicine; //Medicine Name
    NSMutableArray *status; //Added - Modified - Deleted (with time and date)
    NSMutableArray *displayMedicine;
    NSMutableArray *displayStatus;
    NSMutableArray *descriptionsArray;
}

@property (retain, nonatomic) AppDelegate *aD;
@property (nonatomic) sqlite3 * dinDB;

@property (retain, nonatomic) IBOutlet UIBarButtonItem *back;
@property (retain, nonatomic) IBOutlet UIBarButtonItem *share;
@property (retain, nonatomic) IBOutlet UISearchBar *searchDate;
@property (retain, nonatomic) IBOutlet UITableView *logTracker;
@property (retain, nonatomic) IBOutlet UISegmentedControl *order;

@property (retain, nonatomic) IBOutlet UIBarButtonItem *backtoLog;
@property (retain, nonatomic) IBOutlet UINavigationBar *navDescription;
@property (retain, nonatomic) IBOutlet UITextView *description;
@property (retain, nonatomic) IBOutlet UIImageView *descriptionImage;

@property (retain, nonatomic) NSMutableArray *medicine;
@property (retain, nonatomic) NSMutableArray *status;
@property (retain, nonatomic) NSMutableArray *displayMedicine;
@property (retain, nonatomic) NSMutableArray *displayStatus;
@property (retain, nonatomic) NSMutableArray *descriptionsArray;

- (IBAction)Back:(id)sender;
- (IBAction)Share:(id)sender;
- (IBAction)ChangeOrder:(id)sender;
- (IBAction)BackToLog:(id)sender;

@end
